package com.dwd.user.mapper;

import com.dwd.basic.mapper.BaseMapper;
import com.dwd.user.pojo.WeChat;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


/**
 * @Description: TODO
 * @Author 汶狄
 * @Date 2021/1/5 11:31
 * @Version 1.0
 */
@Repository
@Mapper
public interface WeChatMapper extends BaseMapper<WeChat> {

    WeChat queryWeChatByOpenId(String openid);

    /**
     * 根据openid绑定账号
     * @param id
     * @param openid
     */
    void updateByOpenId(@Param("id") Long id, @Param("openid") String openid);
}